/**
 * 		Permission.java
 *  Adrián E. Córdoba 		04/05/2014
 */
package ar.com.adriancordoba.app.enterprise.rosc.model.entities;

import java.io.Serializable;

/**
 * 
 * @author Adrián E. Córdoba
 */
public class Permission implements Serializable{
	private String module;
	private boolean view;
	private boolean create;
	private boolean modify;
	private boolean delete;

	private static final long serialVersionUID = 1L;

	/**
	 * @param module
	 * @param view
	 * @param create
	 * @param modify
	 * @param delete
	 */
	public Permission(String module, boolean view, boolean create,
			boolean modify, boolean delete) {
		this.module = module;
		this.view = view;
		this.create = create;
		this.modify = modify;
		this.delete = delete;
	}

	/**
	 * 
	 */
	public Permission() {
	}

	/**
	 * @return the module
	 */
	public String getModule() {
		return module;
	}

	/**
	 * @param module the module to set
	 */
	public void setModule(String module) {
		this.module = module;
	}

	/**
	 * @return the view
	 */
	public boolean isView() {
		return view;
	}

	/**
	 * @param view the view to set
	 */
	public void setView(boolean view) {
		this.view = view;
	}

	/**
	 * @return the create
	 */
	public boolean isCreate() {
		return create;
	}

	/**
	 * @param create the create to set
	 */
	public void setCreate(boolean create) {
		this.create = create;
	}

	/**
	 * @return the modify
	 */
	public boolean isModify() {
		return modify;
	}

	/**
	 * @param modify the modify to set
	 */
	public void setModify(boolean modify) {
		this.modify = modify;
	}

	/**
	 * @return the delete
	 */
	public boolean isDelete() {
		return delete;
	}

	/**
	 * @param delete the delete to set
	 */
	public void setDelete(boolean delete) {
		this.delete = delete;
	}
}
